# !/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :basic_test.py
# @Time      :2025/7/9 18:01
# @Author    :aiyimu

import asyncio

async def simple_coroutine():
    print("协程开始")
    await asyncio.sleep(1) # 模拟IO操作
    print("协程结束")

async def nested_coroutine():
    print("嵌套协程开始")
    await asyncio.sleep(0.5)
    print("嵌套协程开始")

async def main():
    print("主协程开始")
    await nested_coroutine()
    print("主协程结束")

asyncio.run(main())